/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 电梯停梯状态日志实体类
 *
 * @author ysq
 * @since 2022-10-09
 */
@Data
@TableName("blade_elevator_stop_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ElevatorStopLog对象", description = "电梯停梯状态日志")
public class ElevatorStopLog extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 电梯id
	*/
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;
	/**
	* 初始运行状态 1-正常，2-停梯
	*/
	@ApiModelProperty(value = "初始运行状态 1-正常，2-停梯")
	private Integer initStatus;
	/**
	* 设置运行状态 1-正常，2-停梯
	*/
	@ApiModelProperty(value = "设置运行状态 1-正常，2-停梯")
	private Integer setStatus;
	/**
	* 停梯原因，对应字典key
	*/
	@ApiModelProperty(value = "停梯原因，对应字典key")
	private String stopReason;
	/**
	* 停梯原因字典值
	*/
	@ApiModelProperty(value = "停梯原因字典值")
	private String stopReasonName;
	/**
	* 停梯原因key祖级列表
	*/
	@ApiModelProperty(value = "停梯原因key祖级列表")
	private String stopReasonAncestors;
	/**
	* 操作来源 0-维保租户后台 1-维保小程序 2-物业小程序
	*/
	@ApiModelProperty(value = "操作来源 0-维保租户后台 1-维保小程序 2-物业小程序")
	private Integer source;
	/**
	* 操作平台 0-梯无忧，1-梯联网
	*/
	@ApiModelProperty(value = "操作平台 0-梯无忧，1-梯联网")
	private Integer platform;
	/**
	* 操作模块
	*/
	@ApiModelProperty(value = "操作模块")
	private String module;
	/**
	* 耗时
	*/
	@ApiModelProperty(value = "耗时")
	private Long duration;
	/**
	* 版本
	*/
	@ApiModelProperty(value = "版本")
	private Integer version;

	/**
	 * 停梯类型 1-设备维护 2-设备故障 3-非设备故障
	 */
	private Integer stopType;

	/**
	 * 停梯备注
	 */
	private String stopDesc;

	/**
	 * 停梯类型备注
	 */
	private String stopTypeDesc;

	/**
	 * 操作位置 1-签到 2-签退 3-报障状态 4-电梯状态设置 5-工单创建 6-变更状态
	 */
	private Integer position;

}
